package com.qianya.model.pojo.login.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qianya.model.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author lhl
 * @since 2020-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="LoginRole对象", description="角色")
public class LoginRoleUserVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "RO_ID", type = IdType.UUID)
    private String roId;

    @ApiModelProperty(value = "角色名称")
    @TableField("RO_NAME")
    private String roName;

    @ApiModelProperty(value = "角色状态")
    @TableField("RO_STATUS")
    private String roStatus;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "角色创建时间")
    @TableField("RO_CREATE_TIME")
    private String roCreateTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "角色人数")
    private int  num;





}
